home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / squirrel_family_crazy_cruise.swf / scripts / frame_1 / DoAction.as
Text File  |  2012-01-07  |  791b  |  36 lines

  1. _global.ipb_get_gname = function()
  2. {
  3.    var _loc3_ = _root._url;
  4.    var _loc5 = "";
  5.    var _loc2_ = "";
  6.    var _loc6 = _loc3_.lastIndexOf("\\") + 1;
  7.    if(_loc6 == -1 || _loc6 == 0)
  8.    {
  9.       _loc6 = _loc3_.lastIndexOf("/") + 1;
  10.    }
  11.    var _loc1_ = _loc6;
  12.    var _loc7 = String(_loc3_).length;
  13.    while(_loc1_ < String(_loc3_).length)
  14.    {
  15.       _loc2_ = _loc3_.charAt(_loc1_);
  16.       if(_loc2_ == ".")
  17.       {
  18.          break;
  19.       }
  20.       _loc5 += _loc2_;
  21.       _loc1_ = _loc1_ + 1;
  22.    }
  23.    return _loc5;
  24. };
  25. ipb_gname = _global.ipb_get_gname();
  26. xx = new LoadVars();
  27. xx.onLoad = function(success)
  28. {
  29.    if(success)
  30.    {
  31.       _global.ipb_scoreVar = this.scoreVar;
  32.    }
  33. };
  34. fname = "arcade/gamedata/" + ipb_gname + "/" + ipb_gname + ".txt";
  35. xx.load(fname);
  36.